<!DOCTYPE html>
<html>
  <head>
    <title>index.html</title>
	
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="this is my page">
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    
    <!--<link rel="stylesheet" type="text/css" href="./styles.css">-->
     <link rel="stylesheet" type="text/css" href="extjs/resources/css/ext-all.css" />

  </head>
  
  <body>
   <script type="text/javascript" src="extjs/ext-all.js"></script>
<script type="text/javascript" src="extjs/ext-lang-zh_CN.js"></script>
   <script type="text/javascript"> 
   var userName ="请登录";
   Ext.Ajax.request({
		url : '/user/getSessionUser',
		
		method : 'POST',
		async: false,
		success : function(response, options) {
			
			var result = Ext.decode(response.responseText);
			if (result.success) {
				// artclepanel.store.remove(record);//参数是record类型的,移除该数据
        userName = result.user.loginame;
				

			} else {
				 window.location.href="users/login.html";
			}
		}
		

	});
        //alert(userName);
    </script>
  </body>
 
<script type="text/javascript" src="js/treejson/treejson.js"></script>
</html>
